package net.lcheng.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * Created by LV on 2016/3/3 0003.
 */
public class UpdatePhoneModel {

    @Pattern(regexp = "^[1][345678][0-9]{9}$", message = "手机号码格式不正确")
    private String userPhone;//手机号

    @NotEmpty(message = "验证码不能为空")
    private String number;//验证码

    @Pattern(regexp = "[a-zA-Z0-9]{6,20}", message = "密码格式不正确")
    private String  userPwd;//登录密码

    @Pattern(regexp = "[a-zA-Z0-9]{6,20}", message = "密码格式不正确")
    private String rePassword;

    public String getRePassword() {
        return rePassword;
    }

    public void setRePassword(String rePassword) {
        this.rePassword = rePassword;
    }



    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }
}
